package a.j.a;

import a.j.g;

import javax.swing.*;
import javax.swing.tree.*;

public class r
  extends JTree
{
  public static int a;
  
  public r(j paramj)
  {
    this(paramj, new l(paramj));
  }
  
  public r(j paramj, TreeModel paramTreeModel)
  {
    super(paramTreeModel);
    setLargeModel(true);
    setSelectionModel(new t(paramj));
    setCellRenderer(new k());
    if (j.v == 0)
    {
      if ((paramj.j() instanceof g))
      {
        setEditable(true);
        setCellEditor(new DefaultTreeCellEditor(this, new DefaultTreeCellRenderer()));
      }
      setLargeModel(true);
    }
  }
  
  public void a()
  {
    int i = j.v;
    Object localObject;
    if (i == 0) {
      if ((getModel() instanceof l))
      {
        localObject = (l)getModel();
        setModel(new DefaultTreeModel(null));
        ((l)localObject).a();
      }
    }
    if ((i != 0) || ((getSelectionModel() instanceof t)))
    {
      localObject = (t)getSelectionModel();
      setSelectionModel(new DefaultTreeSelectionModel());
      ((t)localObject).b();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.a.r

 * JD-Core Version:    0.7.0.1

 */